<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>显示隐藏之visibility</title>
    <style>
        .bb {
            /* 1：visibility:hidden 元素隐藏 并且保留位置（其结构也还在html里，只是隐藏并未删除）。与（display：none不保留原位置）的唯一区别就是其继续保留原位置 */
            /* visibility: hidden; */
            /* ////////////////////////// */
            /* 2：visibility: visible 元素显示可视的意思 */
            visibility: visible;

            width: 200px;
            height: 200px;
            background-color: pink;
        }

        .mm {
            width: 200px;
            height: 200px;
            background-color: skyblue;
        }
    </style>
</head>

<body>
    <div class="bb">1</div>
    <div class="mm">2</div>
</body>

</html>